$OpenBSD: patch-modules_sca_sca_subscribe_c,v 1.2 2015/11/20 10:09:52 sthen Exp $
--- modules/sca/sca_subscribe.c.orig	Fri Oct  2 15:35:18 2015
+++ modules/sca/sca_subscribe.c	Mon Oct 19 14:00:40 2015
@@ -78,7 +78,7 @@ sca_subscription_purge_expired( unsigned int ticks, vo
     sca_hash_table	*ht;
     sca_hash_entry	*ent, *ent_tmp;
     sca_subscription	*sub;
-    time_t		now = time( NULL );
+    long		now = (long)time( NULL );
     int			state;
     int			i;
 
@@ -246,7 +246,7 @@ sca_subscriptions_restore_from_db( sca_mod *scam )
     int			i;
     int			idx;
     int			rc = -1;
-    time_t		now = time( NULL );
+    long		now = (long)time( NULL );
 
     db_con = scam->db_api->init( scam->cfg->db_url );
     if ( db_con == NULL ) {
@@ -456,7 +456,7 @@ sca_subscription_db_delete_expired( db1_con_t *db_con 
     db_key_t		delete_columns[ 1 ];
     db_val_t		delete_values[ 1 ];
     db_op_t		delete_ops[ 1 ];
-    time_t		now = time( NULL );
+    long		now = (long)time(NULL);
     int			kv_count = 0;
 
     delete_columns[ 0 ] = (str *)&SCA_DB_EXPIRES_COL_NAME;
@@ -484,7 +484,7 @@ sca_subscription_db_update( void )
     sca_subscription	*sub;
     int			i;
     int			rc = -1;
-    time_t		now = time( NULL );
+    long		now = (long)time( NULL );
 
     db_con = sca_db_get_connection();
     if ( db_con == NULL ){
